﻿using Orchard.UI.Resources;

namespace MidnightPixel.PrefixFree {
	public class ResourceManifest : IResourceManifestProvider {
		public void BuildManifests(ResourceManifestBuilder builder) {
			const string prefixfreeVersion = "1.0.7";

			var manifest = builder.Add();
			manifest.DefineScript("PrefixFree").SetUrl("prefixfree.min.js", "prefixfree.js").SetVersion(prefixfreeVersion);
			manifest.DefineScript("PrefixFree.jQuery").SetUrl("plugins/prefixfree.jquery.js").SetDependencies("PrefixFree").SetVersion(prefixfreeVersion);
			manifest.DefineScript("PrefixFree.DynamicDom")
					.SetUrl("plugins/prefixfree.dynamic-dom.min.js", "plugins/prefixfree.dynamic-dom.js")
					.SetDependencies("PrefixFree")
					.SetVersion(prefixfreeVersion);
		}
	}
}